import type { RouteRecordRaw } from 'vue-router'
import { Layout } from '@ag/design'

const router: RouteRecordRaw = {
  redirect: '/demo/demo-2',
  path: '/demo',
  component: Layout,
  name: 'demo',
  meta: {
    title: 'Demo 页面',
    iconName: 'icon-svg-settings'
  },
  children: [
    {
      path: 'demo-2',
      component: () => import('@/views/demo-list/index.vue'),
      name: 'demoList',
      meta: {
        breadcrumb: false,
        title: 'Demo 列表页',
        activeMenu: '/demo'
      }
    }
  ]
}

export default router
